﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Coco.Infrastructure;
using Coco.Library;

namespace Coco.ViewModel
{
    public class LunarCalendarViewModel : NotificationObject
    {
        public LunarCalendarViewModel() { }

        private DateTime selectedDate = DateTime.Now;
        public DateTime SelectedDate
        {
            get { return selectedDate; }
            set
            {
                selectedDate = value;
                RaisePropertyChanged(() => SelectedDate);
                RaisePropertyChanged(() => Lunar);
            }
        }

        public Lunar Lunar
        {
            get { return LunarSolar.SolarToLunar(SelectedDate); }
        }
    }
}
